﻿/****************************************************
    文件：#SCRIPTNAME#.cs
	作者：GHC
    邮箱: 1191775201@qq.com
    日期：#CreateTime#
	功能：跟随下棋的UI
*****************************************************/
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class UIFllow : MonoBehaviour
{
    
    void Update()
    {
        if (ChessBoard.Instance.chessStack.Count > 0)
        {
            transform.position = ChessBoard.Instance.chessStack.Peek().position;
        }
    }

    public void OnReplayBtn()
    {
        SceneManager.LoadScene(1);
    }

    public void OnReturnBtn()
    {
        SceneManager.LoadScene(0);
    }
}
